<?php

namespace app\controller\app\config;

use App\controller\app\AppBase;
use App\model\AppSettingModel;
use support\Request;
use Webman\Http\Response;
use app\service\Route;

class Config extends AppBase
{
    public function beforeAction(){
        $rtn = parent::beforeAction();
        if($rtn instanceof Response){
            return $rtn;
        }
    }

    /**
     * description:配置
     * @Route(reqUrl="/app.config",authCheck=false)
     * author:yangkelong
     * data:2022/8/25
     */
    public function get(){
        $res = AppSettingModel::where('app_id','=',$this->app_id)->find();
        return success($res);
    }
}